import { createI18n } from "vue-i18n"
import localZhCn from './languages/zh-cn'
import localEn from './languages/en'
import zhCn from 'element-plus/es/locale/lang/zh-cn.mjs'
import en  from 'element-plus/es/locale/lang/en.mjs'

const i18n = createI18n({
    legacy:false,
    locale:'zh-cn',
    fallbackLocale: 'zh-cn',
    messages:{
        'zh-cn':localZhCn,
        'en':localEn
    }
})

export const elementLocales = {
    'zh-cn' :zhCn,
    en
}

export default i18n